package a_aa_amainpackage.a_o2odata_deal.config
/*
*项目名: o2odata_commend
*文件名: config
*创建者: hancongcong
*创建时间:2019/8/9 16:02
*描述: TODO
*/ object config {
  val clust1  ="s3a://"  //配置 obs
  val clustName="hdfs://192.168.2.188:9000" //配置 hdfs


  //提取数据的年，平台，月
  val year = "2020"
  val years = "2020"
  val last_years = "2019"
  val platform = "tmall"
  val month = 3
  val months = 3
 // val months = 10
  val lastmonth = 2
  val lastlastmonth = 1
  //val timeStamp = getNowMonthEnd()
  val timeStamp = "1585497600"


  // 农产品路径
  val products_obs_path = "s3a://o2o-dimension-table/category_table/products_9_3_20190301.json/*"
  // 分类表路径
  val category_obs_path = "s3a://o2o-dimension-table/category_table/tm_cate_20200402/*"
  // 地址表路径
  val address_obs_path = s"s3a://o2o-dimension-table/address_table/address_table_2020/${month}/address_platform/${platform}_address_2020_${month}/"
 val address_new_path = s"s3a://o2o-dimension-table/address_table/address_source_data_${years}/address_platform_newAdd/${years}_${months}/tmall_address_${years}_${months}/"
  //val address_obs_path = s"s3a://o2o-dimension-table/address_table/address_table_2020/1/address_platform/${platform}_address_2020_1/"
  //双十一预售
  //val address_obs_path = s"s3a://o2o-dimension-table/address_table/address_table_2019/${month}/address_platform/${platform}_address_2019_double11/*"
  ///从mongo提取数据的集合
  //原始数据集合
  val collection_detail = s"tmall_detail_200${month}"
  val last_collection_detail = s"tmall_detail_200${lastmonth}"
  //补采销量的数据
  val brand_api_collection = s"tmall_id_from_brand_api_200${month}"
  //补采数据第二部分
  val totalsell_collection = s"tmall_totalsell_day_200${month}"
 //是否是新品数据集合
 val is_newProduct_collection = s"tmall_id_from_app_200${month}"
 //直播ID数据集合
 val live_id_collection = s"tmall_live_id_200${month}"
 //直播detail数据集合
 val live_detail_collection = s"tmall_live_detail_200${month}"
 //主播集合
 val tmall_anchor_id_collection = s"tmall_anchor_id"
 //阿里机构集合
 val ali_store_address_all_collection = s"ali_store_address_all"
 //直播机构
 val ali_zb_collection = s"ali_zb_200${month}"
 //阿里主播集合
 val ali_store_collection = s"ali_store_200${month}"

  //三个月的慢慢买价格
  val price_sq_collection = s"tmall_sq_200${month}"
  val last_price_sq_collection = s"tmall_sq_200${lastmonth}"
  val lastlast_price_sq_collection = s"tmall_sq_200${lastlastmonth}"

  //折扣数据，一个月采集四次，每月需做相应修改
  val shop_collection1 = "tmall_shop_coupon_200308"
  val shop_collection2 = "tmall_shop_coupon_200316"
  val shop_collection3 = "tmall_shop_coupon_200324"
  val shop_collection4 = "tmall_shop_coupon_200331"



  //从mongo提取数据后保存的路径 (店铺优惠券为固定路径 eg:o2o-sourcedata/obs-source-2019/7/tmall/tmall_shop_coupon_190708/)
  val source_obs_data_path = clust1 + s"o2o-sourcedata/obs-source-${year}/${month}/${platform}/${collection_detail}" //全量数据
 //上个月全量数据
  val last_source_obs_data_path = clust1 + s"o2o-sourcedata/obs-source-${years}/${lastmonth}/${platform}/${last_collection_detail}" //全量数据
  //9月份该路径数据为空
  val brandpath  = clust1 + s"o2o-sourcedata/obs-source-${year}/${month}/${platform}/${brand_api_collection}"   //补采销量第一部分 tmall_id_from_brand_api_1907
  //9月份该路径数据为空
  val totalsell_path  = clust1 +  s"o2o-sourcedata/obs-source-${year}/${month}/${platform}/${totalsell_collection}" //补采销量第二部分 tmall_totalsell_day_1907

  val pricesq_path = clust1 + s"o2o-sourcedata/obs-source-${year}/${month}/${platform}/${price_sq_collection}"  //补采价格 tmall_sq_1906
  val lastmonth_pricesq_path = clust1 + s"o2o-sourcedata/obs-source-${years}/${lastmonth}/${platform}/${last_price_sq_collection}"  //补采价格 tmall_sq_1906
  val lastlastmonth_pricesq_path = clust1 + s"o2o-sourcedata/obs-source-${years}/${lastlastmonth}/${platform}/${lastlast_price_sq_collection}"  //补采价格 tmall_sq_1906


  //异常价格保存路径
  val exec_price_top = clust1 + s"o2o-dataproces-group/panzonghao/exec_price_top/${year}/${month}"



  //品牌路径,每月应做相应修改
  //val brand_time = "2019年11月"
  //    跑完分类的数据路径【自己的原始数据路径】
// 传入df
  // 【结果路径】【关联完品牌的结果路径，可以自行更改】
  val source_result = s"s3a://o2o-dataproces-group/han_congcong/${year}/${month}/${platform}_brandresult"
  //   老品牌表路径
  //val old_brand_path =s"s3a://o2o-dataproces-group/li_yinchao/Table/${year}/${year}_${month}_end/${platform}"
  val old_brand_path =s"s3a://o2o-dataproces-group/li_yinchao/Table/${years}/${months}/${platform}/"
  //  品牌结果路径【该路径不需要修改】
  val result_path = s"s3a://o2o-dataproces-group/li_yinchao/Table/${year}/${month + 1}/${platform}"
  //双十一路径
  //val result_path = s"s3a://o2o-dataproces-group/li_yinchao/Table/2019/11/yushou/tmall/20191028"
  //  新增品牌路径【该路径不需要修改】
  val brand_newAdd = s"s3a://o2o-dataproces-group/li_yinchao/Table/newAddBrand/${year}/${month}/${platform}"
  //双十一路径
  //val brand_newAdd = s"s3a://o2o-dataproces-group/li_yinchao/Table/newAddBrand/2019/yushou/tmall/20191028"




  //商务部农产品路径
  val swb_products_path = "s3a://o2o-dimension-table/category_table/tm_swb_cate20190301"


  //提取店铺保存路径
  val shopres = s"s3a://o2o-sourcedata/obs_result_shop/${year}/${month}/${platform}"
  //乳液面霜路径
  val output_path = s"s3a://o2o-dataproces-group/panzonghao/${year}/${month}/output_path"

  val paths = s"s3a://o2o-dataproces-group/panzonghao/${year}/${month}/paths"
  val ruyemianshuangpath = s"s3a://o2o-dataproces-group/panzonghao/${year}/${month}/output_path/*/*"

  //跑完分类的数据结果路径
  val cate_path = s"s3a://o2o-dataproces-group/panzonghao/cate_result/${year}/${month}"

 //是否是新品标签
 val is_newProduct_path = s"s3a://o2o-dataproces-group/panzonghao/tmall/${year}/${month}/is_newProduct_path"

 //直播数据
 val tmall_live_id_path = s"s3a://o2o-dataproces-group/panzonghao/tmall/${year}/${month}/tmall_live_id_path"
 val tmall_live_detail_path = s"s3a://o2o-dataproces-group/panzonghao/tmall/${year}/${month}/tmall_live_detail_path"

 val tmall_anchor_id_path = s"s3a://o2o-dataproces-group/panzonghao/tmall/${year}/${month}/tmall_anchor_id_path"

 val ali_store_address_all_path = s"s3a://o2o-dataproces-group/panzonghao/tmall/${year}/${month}/ali_store_address_all_path"

 val ali_zb_path = s"s3a://o2o-dataproces-group/panzonghao/tmall/${year}/${month}/ali_zb_path"
 val ali_store_path = s"s3a://o2o-dataproces-group/panzonghao/tmall/${year}/${month}/ali_store_path"

}
